package com.duoketech.model.article;
import com.duoketech.model.AbstractModel;
public class Article extends AbstractModel<Article>{
    public static final Article dao = new Article();

    public static final String ID = "id";//
    public static final String TITLE = "title";//标题信息
    public static final String COVER = "cover";//封面图片
    public static final String DESC = "desc";//描述信息
    public static final String STATUS = "status";//状态
    public static final String CREATE_TIME = "create_time";//创建时间
    public static final String MODIFY_TIME = "modify_time";//修改时间
    public static final String CONTENT = "content";//内容详情
    public static final String MEMBER_ID = "member_id";//内容详情
    @Override
    public String tableName() {
        return "t_article";
    }

    @Override
    public String status() {

        String result="未知";
        if(getInt(STATUS)==STATUS_NORMAL){
            result="正常使用";
        }
        return result;
    }
}